<?php if(!$profile['info']){?>
<div class="module clearfix">
	<h2>PROFILE IMAGE</h2>
	</div>
	<div>

	<div class='alert alert-warning'>
		Opps! You are not allow to add Photo please fill up your
		profile....

		

	</div>
	<?php } else { ?>
	<div class="module clearfix">
	<h2><?= $profile['info']->title;?></h2>
		</div>
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title">Change Profile Photo</h3>
			</div>
			<div class="panel-body">
				<div class="col-xs-3 pull-left">
					<img class="thumbnail img-responsive"
						src="<?= base_url(); ?>assets/images/photo/<?= $photo;?>" />
				</div>
				<div class="col-xs-9">
					<ul class="list-unstyled small">
						<li>You should always preserve your original content, or make
							back-up copies of such content, on your personal system. You
							should not use the Service as the only repository or other source
							for your content.</li>
						<li>By uploading an image to our website you are granting us
							license to use it for display on our website in any size or
							format, and and on any pages that we deem suitable. You are not
							transferring your copyright of the photograph in any way. This
							remains with you.</li>
						<li>All photos can be credited with a name and link (if this is
							made available to us). We reserve the right to correct any errors
							in the description or location of an uploaded image and remove
							any unsuitable or substandard uploads.</li>
					</ul>

					<form class="form-inline alert alert-info" role="form" method="POST" enctype="multipart/form-data" action="<?= base_url();?>member/upload_profile_image/<?= $profile_id;?>">
					<?php if($this->session->flashdata('message')) { 
						$show_message = $this->session->flashdata('message'); ?>
				<h5 class="login-text text-danger"><?= $show_message; ?> </h5>
				<?php } ?>
						
						<input type="hidden" name="profile_id" value="<?= $profile_id; ?> " >
						<div class="form-group">
							<input type="file" name="userfile">
						</div>


						<input type="submit" class="btn btn-danger" name="upload"
							value="Change Photo">
					</form>


				</div>

			</div>
		</div>
<?php }?>

	</div>
</div>

